Export to Word with Book format-How to solve the Alignment problem ?

I have 3 attributes namely SRS_ID type, DSD_ID and Description. While exporting from DOORS to word with book format,i got following style:
SRS_ID : SRS019

DSD_ID : DSD005
a. In case a passive wake up happens.
SRS_ID : SRS020

DSD_ID : DSD006
a. In case a active wake up happens.
SRS_ID : SRS021

The Options used while exporting to word are:
In General tab:
1. Layout: Book
2. Issue warning when an unregistered OLE object is exported as a picture.
In Advanced tab:
1. Use "paragraph style" attribute

But i need the alignment as given below:

SRS_ID : SRS019
DSD_ID : DSD005
a. In case a passive wake up happens.

SRS_ID : SRS020
DSD_ID : DSD006
a. In case a active wake up happens.

SRS_ID : SRS021

Can anyone help me to get the above style?
ResmyFrancis - Mon Oct 04 02:45:11 EDT 2010

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Mon Oct 04 04:37:55 EDT 2010

It seems, that you created the SRS_ID column, using a traceability column and that this column adds a newline after the column. Otherwise you would get:

SRS_ID:...
DSD_ID:...
a. ...
SRS_ID:...
...

If that is the case you need to correct your Layout DXL code (or whatever created that column).

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Mon Oct 04 06:56:08 EDT 2010

Mathias Mamsch - Mon Oct 04 04:37:55 EDT 2010
It seems, that you created the SRS_ID column, using a traceability column and that this column adds a newline after the column. Otherwise you would get:

SRS_ID:...
DSD_ID:...
a. ...
SRS_ID:...
...

If that is the case you need to correct your Layout DXL code (or whatever created that column).

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

I created the module using the options:
1. Right click --> New ---> Formal Module
Give
2. Name : Module name
3. Object identifier --> Start at : 1
4. Object identifier --> Prefix : SRS
Then clicked "OK".
Then open the module in "standard view", then it appears like, one column for "ID" and another one column for "Description".Then i added different objects.
Now also, if i export in book format, it will appear like:
ID : SRS1

1 Intro1
ID : SRS2

1.1 Sec1
ID : SRS3

1.1.1 Text1
ID : SRS4

2 Intro2
ID : SRS5

2.1 Sec2
ID : SRS6

2.1.1 Text2
ID : SRS7

3 Intro3
ID : SRS8

3.1 Sec3
ID : SRS9

3.1.1 Text3

I didnt know DXL code? Can anyone help me to solve this?

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Mon Oct 04 07:53:36 EDT 2010

ResmyFrancis - Mon Oct 04 06:56:08 EDT 2010
I created the module using the options:
1. Right click --> New ---> Formal Module
Give
2. Name : Module name
3. Object identifier --> Start at : 1
4. Object identifier --> Prefix : SRS
Then clicked "OK".
Then open the module in "standard view", then it appears like, one column for "ID" and another one column for "Description".Then i added different objects.
Now also, if i export in book format, it will appear like:
ID : SRS1

1 Intro1
ID : SRS2

1.1 Sec1
ID : SRS3

1.1.1 Text1
ID : SRS4

2 Intro2
ID : SRS5

2.1 Sec2
ID : SRS6

2.1.1 Text2
ID : SRS7

3 Intro3
ID : SRS8

3.1 Sec3
ID : SRS9

3.1.1 Text3

I didnt know DXL code? Can anyone help me to solve this?

When I create a new module, create some objects I get a similar result. In the document there is a visible separation before each heading, which is because the "Heading" styles of the word document has a paragraph distance configured in my normal template (meaning there is supposed to be a little space before each heading).

Test this for yourself by inserting some text in between the headings of your newly created module.

I am not entirely sure, that this is the reason why you are experiencing the problem stated above, since you are getting a space before each "DSD_ID" or after each "SRS_ID". There are only three reasons for that:

1. The paragraph style has a distance configured (in this case there will be no empty line in the document, but just a distance)
2. In the DOORS column there is a line break before the "DSD_ID" value
3. In the DOORS column there is a line break after the "SRD_ID"

My guess is still nr. 3

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Mon Oct 04 07:56:41 EDT 2010

Mathias Mamsch - Mon Oct 04 07:53:36 EDT 2010
When I create a new module, create some objects I get a similar result. In the document there is a visible separation before each heading, which is because the "Heading" styles of the word document has a paragraph distance configured in my normal template (meaning there is supposed to be a little space before each heading).

Test this for yourself by inserting some text in between the headings of your newly created module.

I am not entirely sure, that this is the reason why you are experiencing the problem stated above, since you are getting a space before each "DSD_ID" or after each "SRS_ID". There are only three reasons for that:

1. The paragraph style has a distance configured (in this case there will be no empty line in the document, but just a distance)
2. In the DOORS column there is a line break before the "DSD_ID" value
3. In the DOORS column there is a line break after the "SRD_ID"

My guess is still nr. 3

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

You can try to first remove the DSD_ID column and see if you still get the line breaks. Then remove the SRD_ID column and see if you still get the breaks. Regards, Mathias

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Mon Oct 04 10:06:02 EDT 2010

Mathias Mamsch - Mon Oct 04 07:56:41 EDT 2010
You can try to first remove the DSD_ID column and see if you still get the line breaks. Then remove the SRD_ID column and see if you still get the breaks. Regards, Mathias

First i removed the DSD_ID column, then i got following style:

SRS_ID : SRS019

a. In case a passive wake up happens.

SRS_ID : SRS020

a. In case a active wake up happens.

SRS_ID : SRS021

Then i added the DSD_ID column and removed SRS_ID column, then i got following style:

DSD_ID : DSD005

a. In case a passive wake up happens.

DSD_ID : DSD006

a. In case a active wake up happens.

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Mon Oct 04 12:18:11 EDT 2010

ResmyFrancis - Mon Oct 04 10:06:02 EDT 2010
First i removed the DSD_ID column, then i got following style:

SRS_ID : SRS019

a. In case a passive wake up happens.

SRS_ID : SRS020

a. In case a active wake up happens.

SRS_ID : SRS021

Then i added the DSD_ID column and removed SRS_ID column, then i got following style:

DSD_ID : DSD005

a. In case a passive wake up happens.

DSD_ID : DSD006

a. In case a active wake up happens.

So it seems that the SRS_ID has the line feed after it. Can you check, if the SRS_ID is a DXL Layout Column, a DXL Attribute or a normal attribute? If this is DXL Layout or DXL Column can you post the DXL code. Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
rmoskwa - Mon Oct 04 13:03:21 EDT 2010

Mathias Mamsch - Mon Oct 04 12:18:11 EDT 2010
So it seems that the SRS_ID has the line feed after it. Can you check, if the SRS_ID is a DXL Layout Column, a DXL Attribute or a normal attribute? If this is DXL Layout or DXL Column can you post the DXL code. Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Hi Mathias,

I tried to help ResmyFrancis when he first posted this question in the Grneral Forum.
See
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=348028&tstart=0

I think SRS_ID is a Layout DXL column.
I think all Layout DXL columns have an extra linefeed after them.
I think the extra linefeed is being inserted by \lib\dxl\standard\export\office\word.dxl,
but I am not fluent enough in DXL to prove it or not.

Russ

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Mon Oct 04 15:50:39 EDT 2010

rmoskwa - Mon Oct 04 13:03:21 EDT 2010
Hi Mathias,

I tried to help ResmyFrancis when he first posted this question in the Grneral Forum.
See
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=348028&tstart=0

I think SRS_ID is a Layout DXL column.
I think all Layout DXL columns have an extra linefeed after them.
I think the extra linefeed is being inserted by \lib\dxl\standard\export\office\word.dxl,
but I am not fluent enough in DXL to prove it or not.

Russ

Darnit, you are right :-\ The error is in the "wordDumpColumnValueVBA" function.

If I do the following change:
 

Buffer titledRTF = create // line 1435
titledRTF = titleString
titledRTF += richTextWithOle(c, o)
applyStyleLockPasteInvoke(objSel, richText tempStringOf titledRTF,"Normal")
delete titledRTF
// who wants a paragraph break after a DXL layout column?
appendParaBreak = false // insert me, line 1440

 


the line break is gone.

Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Tue Oct 05 05:03:04 EDT 2010

Mathias Mamsch - Mon Oct 04 15:50:39 EDT 2010

Darnit, you are right :-\ The error is in the "wordDumpColumnValueVBA" function.

If I do the following change:
 

Buffer titledRTF = create // line 1435
titledRTF = titleString
titledRTF += richTextWithOle(c, o)
applyStyleLockPasteInvoke(objSel, richText tempStringOf titledRTF,"Normal")
delete titledRTF
// who wants a paragraph break after a DXL layout column?
appendParaBreak = false // insert me, line 1440

 


the line break is gone.

Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

I done the following change in "wordDumpColumnValueVBA" function.
Buffer titledRTF = create
titledRTF = titleString
titledRTF += richTextWithOle(c, o)
applyStyleLockPasteInvoke(objSel, richText tempStringOf titledRTF,"Normal")
delete titledRTF
// who wants a paragraph break after a DXL layout column?
appendParaBreak = false

I added the above change after if (issueWarnings && containsUnregisteredOle(c, o)){ } and before if(null attrNameString){ }.Then wile run that dxl program, i got following error:

-E- DXL: <Line:1487> incorrect arguments for function (applyStyleLockPasteInvoke)
-I- DXL: all done with 1 error and 0 warnings

Can anyone help me ?

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Tue Oct 05 06:14:59 EDT 2010

ResmyFrancis - Tue Oct 05 05:03:04 EDT 2010
I done the following change in "wordDumpColumnValueVBA" function.
Buffer titledRTF = create
titledRTF = titleString
titledRTF += richTextWithOle(c, o)
applyStyleLockPasteInvoke(objSel, richText tempStringOf titledRTF,"Normal")
delete titledRTF
// who wants a paragraph break after a DXL layout column?
appendParaBreak = false

I added the above change after if (issueWarnings && containsUnregisteredOle(c, o)){ } and before if(null attrNameString){ }.Then wile run that dxl program, i got following error:

-E- DXL: <Line:1487> incorrect arguments for function (applyStyleLockPasteInvoke)
-I- DXL: all done with 1 error and 0 warnings

Can anyone help me ?

Can you attach the export script to your next post? You are probably using DOORS 9.x and your script differs a little from the DOORS 8.2 script I used.

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Tue Oct 05 07:14:08 EDT 2010

Mathias Mamsch - Tue Oct 05 06:14:59 EDT 2010
Can you attach the export script to your next post? You are probably using DOORS 9.x and your script differs a little from the DOORS 8.2 script I used.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

I am using DOORS 9.2 version and the DXL program is attached with this.
Can you give a DXL program, which will give following pattern, while exporting to Book format:

SRS_ID : SRS019
DSD_ID : DSD005
a. In case a passive wake up happens.

SRS_ID : SRS020
DSD_ID : DSD006
a. In case a active wake up happens.

SRS_ID : SRS021
DSD_ID : DSD007
a. No wake up happens.
Attachments

attachment_14538952_word.dxl

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Tue Oct 05 08:49:05 EDT 2010

ResmyFrancis - Tue Oct 05 07:14:08 EDT 2010
I am using DOORS 9.2 version and the DXL program is attached with this.
Can you give a DXL program, which will give following pattern, while exporting to Book format:

SRS_ID : SRS019
DSD_ID : DSD005
a. In case a passive wake up happens.

SRS_ID : SRS020
DSD_ID : DSD006
a. In case a active wake up happens.

SRS_ID : SRS021
DSD_ID : DSD007
a. No wake up happens.

Ok, attached is the modified version.

I did another change, so that for a DXL Layout column with an empty title, no ":" will be exported, but just the value. This version of word_forum.dxl will not export a line feed after the DXL layout columns anymore.

This means to get the layout you want, you need to insert a line feed at the right position. To get the layout you want, you would now need to insert a DXL Layout column with the following content before the SRS_ID column:

display " " // do a space with a line feed ...

 


Then we should be near to what you wanted.

Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 


Attachments

attachment_14538972_word_forum.dxl

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 03:09:20 EDT 2010

Mathias Mamsch - Tue Oct 05 08:49:05 EDT 2010

Ok, attached is the modified version.

I did another change, so that for a DXL Layout column with an empty title, no ":" will be exported, but just the value. This version of word_forum.dxl will not export a line feed after the DXL layout columns anymore.

This means to get the layout you want, you need to insert a line feed at the right position. To get the layout you want, you would now need to insert a DXL Layout column with the following content before the SRS_ID column:

display " " // do a space with a line feed ...

 


Then we should be near to what you wanted.

Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

I don't need the line feed for headings.........for that how can i modify the DXL code?
I tried the following DXL code:
if (obj."Object Heading" "" != "") display " "
But it is not working. It again shows unwanted space after heading as given below:
2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

But i prefer the following style:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE
SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE
SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

can you help me to get the above style?

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 03:17:02 EDT 2010

ResmyFrancis - Wed Oct 06 03:09:20 EDT 2010
I don't need the line feed for headings.........for that how can i modify the DXL code?
I tried the following DXL code:
if (obj."Object Heading" "" != "") display " "
But it is not working. It again shows unwanted space after heading as given below:
2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

But i prefer the following style:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE
SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE
SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

can you help me to get the above style?

sorry ignore the previous message:

The required one is given below:
I don't need the line feed for headings.........for that how can i modify the DXL code?
I tried the following DXL code:

if (obj."Object Heading" "" != "") display " "

But it is not working. It again shows unwanted space after heading as given below:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

But i prefer the following style, ie, equal space between headings:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

can you help me to get the above style?

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 03:30:08 EDT 2010

ResmyFrancis - Wed Oct 06 03:17:02 EDT 2010
sorry ignore the previous message:

The required one is given below:
I don't need the line feed for headings.........for that how can i modify the DXL code?
I tried the following DXL code:

if (obj."Object Heading" "" != "") display " "

But it is not working. It again shows unwanted space after heading as given below:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

But i prefer the following style, ie, equal space between headings:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

can you help me to get the above style?

In this case you should create your own word template. Make a new document, go to the style "Heading 1", "Heading 2", ... and set the space in the paragraph properties before and after the paragraph to 6 pt. Save the document as a Word Template ".dot". Then when doing the export, go to the advanced settings, deselect "Use Normal Template" and choose your new template instead.

Btw.: You can change the styles in the exported document too.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 07:49:35 EDT 2010

Mathias Mamsch - Wed Oct 06 03:30:08 EDT 2010
In this case you should create your own word template. Make a new document, go to the style "Heading 1", "Heading 2", ... and set the space in the paragraph properties before and after the paragraph to 6 pt. Save the document as a Word Template ".dot". Then when doing the export, go to the advanced settings, deselect "Use Normal Template" and choose your new template instead.

Btw.: You can change the styles in the exported document too.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

The template and the exported files are attached with this message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 07:55:46 EDT 2010

ResmyFrancis - Wed Oct 06 07:49:35 EDT 2010
The template and the exported files are attached with this message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Ignore the previous message:

The template file is attached with this message.The exported file will attach with next message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 07:57:57 EDT 2010

ResmyFrancis - Wed Oct 06 07:55:46 EDT 2010
Ignore the previous message:

The template file is attached with this message.The exported file will attach with next message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

The exported file generated using the above attached template file, was attached with this message.Can anyone help me to get following alignment:
2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.
Attachments

attachment_14539373_Export_Word.doc

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 07:59:39 EDT 2010

ResmyFrancis - Wed Oct 06 07:55:46 EDT 2010
Ignore the previous message:

The template file is attached with this message.The exported file will attach with next message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

The template file is attached with this message.The exported file will attach with next message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 08:02:28 EDT 2010

ResmyFrancis - Wed Oct 06 07:57:57 EDT 2010
The exported file generated using the above attached template file, was attached with this message.Can anyone help me to get following alignment:
2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

The template file is attached with this message. I cant attach .dotx format file. So i am attaching the .doc format. Please convert it to .dotx file and use it while exporting.
Attachments

attachment_14539375_SRA_Template.doc

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 08:12:29 EDT 2010

ResmyFrancis - Wed Oct 06 07:55:46 EDT 2010
Ignore the previous message:

The template file is attached with this message.The exported file will attach with next message.

I am not fluent in MS Word 2007. Can you help me to give the settings for getting the following alignment:

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Hi. The files did not come through. However I think the DOORS problem should be solved, you should read:

http://office.microsoft.com/en-us/word-help/style-basics-in-word-HA010230882.aspx

or

http://www.dummies.com/how-to/content/the-essentials-of-creating-and-using-styles-in-wor.html

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 08:19:50 EDT 2010

ResmyFrancis - Wed Oct 06 07:57:57 EDT 2010
The exported file generated using the above attached template file, was attached with this message.Can anyone help me to get following alignment:
2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_9
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_495
The code file structure shall not be defined within this specification.

Sorry, did not see the documents on my first answer ...

You still have line feeds in your document :-\ You need give a complete description of your Export View. Can you please:

a) Copy the module you are exporting
b) Delete all except some sample objects from it, change confidential information
c) Delete attributes not relevant for the export
d) baseline it
e) post a module archive

and tell us which View you used for exporting.

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 08:25:25 EDT 2010

Mathias Mamsch - Wed Oct 06 08:12:29 EDT 2010
Hi. The files did not come through. However I think the DOORS problem should be solved, you should read:

http://office.microsoft.com/en-us/word-help/style-basics-in-word-HA010230882.aspx

or

http://www.dummies.com/how-to/content/the-essentials-of-creating-and-using-styles-in-wor.html

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Can u give a DXL code for the following requirement:
1. DXL layout column that only displays "line feed", only if the object is not a heading.

Is it like following ?
if (obj."Object Heading" "" != "") display " "

If not, can you send that DXL code?

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 08:26:56 EDT 2010

ResmyFrancis - Wed Oct 06 08:25:25 EDT 2010
Can u give a DXL code for the following requirement:
1. DXL layout column that only displays "line feed", only if the object is not a heading.

Is it like following ?
if (obj."Object Heading" "" != "") display " "

If not, can you send that DXL code?

That should be fine.
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 09:15:45 EDT 2010

Mathias Mamsch - Wed Oct 06 08:26:56 EDT 2010
That should be fine.


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

But it is still giving one line feed after each heading.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 09:23:17 EDT 2010

ResmyFrancis - Wed Oct 06 09:15:45 EDT 2010
But it is still giving one line feed after each heading.

I am facing currently following problem:
Before each Object heading, 2 line feeds are coming. I need one line feed before each Object heading and one line feed before each Object text. I think i have write the DXL code for a new DXL layout column that displays no line feed before each Object heading ( because for Object heading, the line feed is coming automatically ) and one line feed before each Object text.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 09:38:21 EDT 2010

ResmyFrancis - Wed Oct 06 09:23:17 EDT 2010
I am facing currently following problem:
Before each Object heading, 2 line feeds are coming. I need one line feed before each Object heading and one line feed before each Object text. I think i have write the DXL code for a new DXL layout column that displays no line feed before each Object heading ( because for Object heading, the line feed is coming automatically ) and one line feed before each Object text.

Can anyone help me ? I need the pattern urgently.

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 10:03:58 EDT 2010

ResmyFrancis - Wed Oct 06 09:38:21 EDT 2010
Can anyone help me ? I need the pattern urgently.

See my previous post! Send a module archive (remove confidential data->see post) to my email address mmamsch (at) googlemail dot com or attach it to a post. We need a complete description of your export view before we can do anything more. Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 10:32:47 EDT 2010

Mathias Mamsch - Wed Oct 06 10:03:58 EDT 2010
See my previous post! Send a module archive (remove confidential data->see post) to my email address mmamsch (at) googlemail dot com or attach it to a post. We need a complete description of your export view before we can do anything more. Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

The template i used is available in SRA Template.doc

The exported document from DOORS is available in Export_Word.doc ( sec 2 onwards )

The Library DXL code used for Exporting to Word is available in word_forum.dxl

All the DXL code used in different column are available in DXL_Code_Used_For_Columns.txt

Then the problem i faced while exporting is the style i got.The style i got is given below :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS

But i need the style as given below. ie, One line feed between each heading :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS
Attachments

attachment_14539463_ProblemsWhileExportToBookFormat.zip

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Wed Oct 06 10:40:31 EDT 2010

Mathias Mamsch - Wed Oct 06 10:03:58 EDT 2010
See my previous post! Send a module archive (remove confidential data->see post) to my email address mmamsch (at) googlemail dot com or attach it to a post. We need a complete description of your export view before we can do anything more. Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

The template is available as Template.doc

The exported document is available as Export_Word.doc

The library file used for exporting to Word is available as word_forum.dxl

The DXL code used in different columns is available as DXL_Code_Used_For_Coloums.txt

Then the problem i faced while exporting is the style i got.The style i got is given below :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS

But i want the style as given below. ie, exactly one line feed between each heading as given below :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS

Can anyone help me to get the above style? Kindly Please respond fast, because i need this urgently.........
Attachments

attachment_14539468_ProblemsFacedWhileExportingToWord.zip

Re: Export to Word with Book format-How to solve the Alignment problem ?
Mathias Mamsch - Wed Oct 06 16:40:32 EDT 2010

ResmyFrancis - Wed Oct 06 10:40:31 EDT 2010
The template is available as Template.doc

The exported document is available as Export_Word.doc

The library file used for exporting to Word is available as word_forum.dxl

The DXL code used in different columns is available as DXL_Code_Used_For_Coloums.txt

Then the problem i faced while exporting is the style i got.The style i got is given below :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS

But i want the style as given below. ie, exactly one line feed between each heading as given below :

2 SOFTWARE COMPONENT REQUIREMENTS

2.1 GENERAL REQUIREMENTS

SRS_ID : SRS_7
DSD_ID : DSD_1
There shall be only one module available per ECU.

2.1.1 FILE STRUCTURE

2.1.1.1 CODE FILE STRUCTURE

SRS_ID : SRS_9
DSD_ID : DSD_2
The code file structure shall not be defined within this specification.

2.1.1.2 HEADER FILE STRUCTURE

SRS_ID : SRS_495
DSD_ID : DSD_3
The header file structure shall not be defined within this specification.

2.2 FUNCTIONAL REQUIREMENTS

Can anyone help me to get the above style? Kindly Please respond fast, because i need this urgently.........

This export script is driving me crazy :-) Ever thought about using another exporter like WEXP?

Ok the attached script is supposed to work now! The script did not ignore the empty ID columns.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Attachments

attachment_14539689_word_forum_new.dxl

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Thu Oct 07 08:55:57 EDT 2010

Mathias Mamsch - Wed Oct 06 16:40:32 EDT 2010
This export script is driving me crazy :-) Ever thought about using another exporter like WEXP?

Ok the attached script is supposed to work now! The script did not ignore the empty ID columns.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Thanks a lot for your great help. I got almost similar pattern i want.

Re: Export to Word with Book format-How to solve the Alignment problem ?
ResmyFrancis - Thu Oct 07 08:57:16 EDT 2010

The DXL code updated for getting the necessary style.